package com.pcj.blog.dao;
/**
 * @param
 * @author pcj
 * @date 2022/1/5 20:16
 * @return
 */

import com.pcj.blog.po.Comment;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 *
 * @className CommentRepository
 * @author pengcj
 * @date 2022/1/5 20:16
 */

public interface CommentRepository extends JpaRepository<Comment,Long> {

    List<Comment> findByBlogIdAndParentCommentNull(Long id, Sort sort);
}
